package com.xunheyun.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xunheyun.mapper.ServerMapper;
import com.xunheyun.service.IServerService;
import com.xunheyun.vo.HostServer;

@Service
public class ServerServiceImpl implements IServerService {

	@Autowired
	private ServerMapper serverMapper;
	
	@Override
	public List<HostServer> list(int configServerId) {
		return serverMapper.list(configServerId);
	}

	@Override
	public int add(HostServer server) {
		return serverMapper.add(server);
	}
	
	@Override
	public int update(HostServer server){
		return serverMapper.update(server);
	}

	@Override
	public int delete(int serverId) {
		return serverMapper.delete(serverId);
	}

	@Override
	public HostServer getById(int serverId) {
		return serverMapper.getById(serverId);
	}
	
}
